package org.dromara.run.domain.bo;

import org.dromara.run.domain.Schedule;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 阳光跑计划表业务对象 phy_run_schedule
 *
 * @author chl
 * @date 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Schedule.class, reverseConvertGenerate = false)
public class ScheduleBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long scheduleId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 计划名称
     */
    @NotBlank(message = "计划名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scheduleName;

    /**
     * 阳光跑地点
     */
    @NotBlank(message = "阳光跑地点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String location;

    /**
     * 年级
     */
    @NotBlank(message = "年级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String years;

    /**
     * 学期
     */
    @NotBlank(message = "学期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String semester;

    /**
     * 跑步规则
     */
    @NotBlank(message = "跑步规则不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleId;

    /**
     * 成绩配置
     */
    @NotBlank(message = "成绩配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String scoreConfigId;

    /**
     * 说明
     */
//    @NotBlank(message = "说明不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    private String status;

    private String classId;

    private String collegeId;

    private String academicYears;

    private String executionTime;


}
